/*
 * @Author: FightWz
 * @Date: 2019-10-11 11:06:25
 * @LastEditors  : wuzhen
 * @LastEditTime : 2020-01-11 10:48:49
 * @Description: 组件
 */
const routes = [
  {
    path: "/groupManagement",
    component: () => import("@/views/groupManagement"),
    name: "groupManagement",
    meta: {
      title: "群组管理",
      activeMenu: "groupManagement"
    }
  },
  {
    path: "/groupManagement/children",
    component: () => import("@/components/main"),
    children: [
      {
        path: "/groupManagement/users/:id",
        component: () => import("@/views/groupManagement/users"),
        name: "groupManagement-users",
        meta: {
          title: "成员管理",
          activeMenu: "groupManagement",
          hideTag: true
        }
      },
      {
        path: "/groupManagement/chatRecord/:id",
        component: () => import("@/views/groupManagement/chatRecord"),
        name: "groupManagement-chatRecord",
        meta: {
          title: "聊天记录",
          activeMenu: "groupManagement",
          hideTag: true
        }
      }
    ],
    meta: {
      title: "群组管理",
      activeMenu: "groupManagement"
    }
  }
];

export default routes;
